package main;


import gui.LoginPanel;

import javax.swing.SwingUtilities;
import javax.swing.UIManager;

import org.jvnet.substance.skin.SubstanceBusinessBlueSteelLookAndFeel;

import utils.Utils;

public class WSClient {

	LoginPanel lp;

	public WSClient() {
		// Utils.out(System.getProperty("user.name"));
		/*
		 * java.util.ArrayList<Job> jb = new java.util.ArrayList<Job>();
		 * jb.add(new Job("a","b",1)); jb.add(new Job("c","d",2)); //Type
		 * listType = new TypeToken<java.util.ArrayList<Job>() {}.getType();
		 * String s = new Gson().toJson(jb, new
		 * TypeToken<java.util.ArrayList<Job>>() {}.getType()); Utils.out(s);
		 * java.util.List<Job> la = new Gson().fromJson(s, new
		 * TypeToken<java.util.ArrayList<Job>>() {}.getType());
		 * Utils.out(la.get(0).n);
		 */
		/*
		 * String s = new data.LoginInfo("simon","simosssn").toString();
		 * Utils.out(s); Utils.out(data.LoginInfo.fromJSon(s).user);
		 */
		lp = new LoginPanel(this);
		lp.showPanel();
	}

	public static void main(String[] args) {
		Utils.unzip("C:\\Users\\Public\\Pictures\\Sample Picture.zip");
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				try {
					UIManager
							.setLookAndFeel(new SubstanceBusinessBlueSteelLookAndFeel());
					new WSClient();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});

	}
}
